package com.rongmai.db.enums;


public enum UserRoleEnum {


    INVEST("企业", "我要投资-找企业融资部门人脉"),
    FINANCE("资金", "我要融资-找银行及机构资金投资人脉"),

    SHAREHOLD_INVEST("股权企业", "我要股权投资-找股权企业融资部门人脉"),
    SHAREHOLD_FINANCE("股权资金", "我要股权融资-找股权投资人脉"),

//    TENDER("我是招标-找企业人脉"),
//
//    BIDDING("我是投标-找招标人脉"),
//    PROMOTION("我是政府招商引资-找企业合作"),
//    PROCURE("我是采购-找销售人脉"),
//    SALE("我是销售-找采购人脉"),



    ;

    private String desc;

    /**
     * 简称
     */
    private String referred;

    UserRoleEnum(String referred, String desc) {
        this.referred = referred;
        this.desc = desc;
    }

    public static UserRoleEnum get(String role) {
        for (UserRoleEnum roleEnum : UserRoleEnum.values()) {
            if (roleEnum.name().equals(role)) {
                return roleEnum;
            }
        }
        return null;
    }

    public String getDesc() {
        return desc;
    }

    public String getReferred() {
        return referred;
    }
}
